package agency.web.app.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import javax.persistence.Table;


@Entity
public class Client extends AbstractUser {
	
		

	
	@Column(name = "USER_ID")
	private Agent agent;
	
	@Column(name = "DISCOUNT")
	private double discount;
	

	
	public Client(String login, String password, String name, String phoneNumber,
			String email, Trip trip, Agent agent, double discount) {
		super(login, password, name, phoneNumber, email, trip);
		this.agent =   agent;
		this.discount = discount;	
	
	}
	
	

	public Agent getAgent() {
		return agent;
	}
	public void setAgent(Agent agent) {
		this.agent = agent;
	}
	public double getDiscount() {
		return discount;
	}
	public void setDiscount(double discount) {
		this.discount = discount;
	}
	
}
